#!/bin/bash
set -euo pipefail
BaseDir=$(cd "$(dirname "$0")"; pwd)
cd ${BaseDir}

[ -d ./node_modules ] || npm install
npm run build:all

cp -rf ./dist ./public/.

echo "使用 ritwickdey.LiveServer 查看直接浏览 public\graph.html ... 这些文件即可查看效果"

echo "done"
